package com.dycx.user.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dycx.common.dto.FileDTO;
import com.dycx.common.dto.handler.FileDtoListTypeHandler;
import com.dycx.common.entity.CommonDO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

/**
 * 车辆表(Vehicle)实体类
 *
 * @author wuzongbin
 * @since 2024-12-31 17:36:26
 */

@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value = "user_vehicle", autoResultMap = true)
public class VehicleDO extends CommonDO implements Serializable {


    /**
     * ID
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 车型ID
     */
    private Integer vehicleTypeId;

    /**
     * 车牌号
     */
    private String licensePlateNumber;

    /**
     * 行驶证图片
     */

    @TableField(typeHandler = FileDtoListTypeHandler.class)
    private List<FileDTO> drivingLicenseImage;

    private Integer brandId;

    @TableField(typeHandler = FileDtoListTypeHandler.class)
    private List<FileDTO> vehicleImage;
    private String size;
    private String color;
    private Integer energy;

    /**
     * 备注
     */
    private String remark;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 状态
     */
    private Boolean status;


}
